<?php

    class Application_Model_Email extends Zend_Db_Table_Abstract
    {

        protected $_name = "users";

        function init()
        {
            
        }

        public function sendMail($toEmail, $fromEmail, $fromName, $subject, $messageContent)
        {
            $returnValue = FALSE;

            $mail = new Zend_Mail();
            $mail->setBodyHtml($messageContent)
                    ->setFrom($fromEmail, $fromName)
                    ->addTo($toEmail)
                    ->setSubject($subject);

            //prd($mail);					

            if ($mail->send())
            {
                $returnValue = TRUE;
            }

            return $returnValue;
        }

    }